
Network_Address = 192.168.1.101
Network_Port = 8765

Gosub,Connection_Init4Client

Return


callback(action){
	global
	if("normalAttack1"==action){
		assistAll()
		normalAttack(1)
	}else if("normalAttack2"==action){
		assistAll()
		normalAttack(2)
	}else if("calltotem"==action){
		calltotem()
	}
	else if("burning"==action){
		burning()
	}else if("aoe"==action){
		aoe()
	}else if("water"==action){
		water()
	}else if("fire"==action){
		fire()
	}
}

assistAll(){
;~ 	assist("WoW2")
	assist("WoW3")
	assist("WoW4")
	assist("WoW5")
}

normalAttack(attackPlan){
		ControlSend,,%attackPlan%,WoW3
		ControlSend,,%attackPlan%,WoW4
		ControlSend,,%attackPlan%,WoW5
}

burning(){
	ControlSend,,6,WoW4
	Sleep,500
	ControlSend,,4,WoW4
}

aoe(){
	ControlSend,,3,WoW3
	ControlSend,,3,WoW4
	ControlSend,,3,WoW5
}

water(){
ControlSend,,9,WoW4
ControlSend,,9,WoW5
}
fire(){
	ControlSend,,F,WoW4
	ControlSend,,F,WoW5
}

calltotem(){
	ControlSend,,{F1},WoW3
}
#Include, core.ahk